const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  publicPath: "/",
  outputDir: "merchantWeb",
  transpileDependencies: true,
  productionSourceMap: false,
  lintOnSave: false,
  devServer: {
    port: '30001',//自定义端口
    client: {
      overlay: false,
    },
    proxy: {
      "/merchantApi": {
        // target: 'http://localhost:8089/',
        // target: "http://192.168.2.142:31002/", //测试
        // target: 'http://192.168.2.186:31002', // 海龙
        target: 'http://192.168.2.160:31002', // 鹏亮
        // target: "http://192.168.2.195:31002", //朋森
        // target: "http://192.168.2.154:31002", //乔
        pathRewrite: {
          "^/merchantApi": "",
        },
      },
    },
  },
  css: {
    loaderOptions: {
      sass: {
        sassOptions: {
          outputStyle: "expanded",
        },
      },
    },
  },
});
